package com.lightsh.widget.testactivity;

import com.lightsh.widget.R;
import com.lightsh.widget.VRatingBar;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class TestWidgetActivity extends Activity{

	VRatingBar mRatingBar;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.test_widget_layout);
		mRatingBar = (VRatingBar)findViewById(R.id.ratingBar);
		mRatingBar.setMinRate(1);
		
		mRatingBar.setOnRateChangeListener(new VRatingBar.OnRateChangeListener() {
			
			public void onRateChange(VRatingBar ratingBar, int rate) {
				Log.e("onRateChange", "" + rate);
				
			}
		});
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}
	
}
